#include "VGridLabel.h"

QString VGridLabel::grids[] = {"images/grid.png", "images/grid2.png", NULL}; // Chemin vers les différentes grilles
QString VGridLabel::grids_name[] = {"Classic", "Ligne verte", NULL}; // Nom des différentes grilles

VGridLabel::VGridLabel(CEditor *editor_data)
{
    this->editor_data = editor_data;
}

VGridLabel::~VGridLabel()
{
}

// Capture les évènements souris
void VGridLabel::mouseReleaseEvent(QMouseEvent *event)
{
    QLabel *label;

    if (event->x() < 0 || event->x() >= 800 || event->y() < 0 || event->y() >= 600)
        return;
    label = new QLabel(this);
    this->editor_data->handle_mouse_release(label, event);
}
